import request from '@/utils/request'

// 查询发货人信息列表
export function listConsigner(query) {
  return request({
    url: '/employer/consigner/list',
    method: 'get',
    params: query
  })
}

// 查询发货人信息列表
export function listConsignerAll() {
  return request({
    url: '/employer/consigner/listAll',
    method: 'get',
  })
}

// 查询发货人信息详细
export function getConsigner(id) {
  return request({
    url: '/employer/consigner/' + id,
    method: 'get'
  })
}

// 新增发货人信息
export function addConsigner(data) {
  return request({
    url: '/employer/consigner',
    method: 'post',
    data: data
  })
}

// 修改发货人信息
export function updateConsigner(data) {
  return request({
    url: '/employer/consigner',
    method: 'put',
    data: data
  })
}

// 删除发货人信息
export function delConsigner(id) {
  return request({
    url: '/employer/consigner/' + id,
    method: 'delete'
  })
}
